Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1269

Merged
merged 1 commit into from
Oct 11, 2021
Merged

API Updates #1269

merged 1 commit into from
Oct 11, 2021

Conversation

richardm-stripe
Copy link
Contributor

Codegen for openapi ef061d9.
r? @dcr-stripe
cc @stripe/api-libraries

Changelog

  • Add support for payment_method_category and preferred_locale on Charge.payment_method_details.klarna
  • Add support for new value klarna on enums CustomerListPaymentMethodsParams.type and PaymentMethodListParams.type
  • Add support for klarna on PaymentIntentCreateParams.payment_method_data, PaymentIntentCreateParams.payment_method_options, PaymentIntentUpdateParams.payment_method_data, PaymentIntentUpdateParams.payment_method_options, PaymentIntentConfirmParams.payment_method_data, PaymentIntentConfirmParams.payment_method_options, PaymentIntent.payment_method_options, PaymentMethodCreateParams, and PaymentMethod
  • Add support for new value klarna on enums PaymentIntentCreateParams.payment_method_data.type, PaymentIntentUpdateParams.payment_method_data.type, and PaymentIntentConfirmParams.payment_method_data.type
  • Add support for new value klarna on enum PaymentMethodCreateParams.type
  • Add support for new value klarna on enum PaymentMethod.type

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one comment

* The Klarna payment method used for this transaction.
* Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
*/
payment_method_category?: string | null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, per IRL discussion I'm going to plow ahead - the team will update the API definition later and it should be safe to make a string->enum change in Typescript without interfering with users.

@richardm-stripe richardm-stripe merged commit dc9e145 into master Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants